﻿@model IEnumerable<Citi.Scheduler.WebUi.Models.MachineConfigurationModel>
<table class="table table-bordered table-striped" style="width: 90% !important;">
    <tr>
        <th>
            Group
        </th>
        <th>
            Configuration
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Configuration.ConfigurationGroup.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Configuration.Name)
            </td>
            <td>
                @*@Html.ActionLink("Delete", "Delete", new { id = item.Id, @class = "icon-remove" })*@
                @Ajax.ActionLink("Delete", "Delete", new { id = item.Id },
                             new AjaxOptions { UpdateTargetId = "machineConfigurationList", Confirm = "Are you sure?" },
                                     new { @class = "icon-trash", title = "Delete" })
            </td>
        </tr>
    }
</table>
